#!/usr/bin/env python
# -*- coding: utf-8 -*-
# @File  : p14_1.py
# @Author: huyn
# @Date  : 2018/5/1
# @Desc  :

import urllib.request


response = urllib.request.urlopen("http://placekitten.com/g/200/300")
cat_img = response.read()
with open("cat_200_300.jpg",'wb') as f:
    f.write(cat_img)